package com.jw.elasticsearch.springboot.index;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

@Document(indexName = "student", type = "_doc")
@Data
public class StudentIndexType {

    private Long stuId;

    @Field(store = true)
    private String name;

    @Field(store = true)
    private Integer age;
}
